package com.app;

import com.app.base.BaseDao;
import com.app.utils.spring.properties.Config;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;

@ServletComponentScan
@SpringBootApplication
@EnableCaching //开启缓存
@MapperScan(value = "com.app.*",markerInterface = BaseDao.class) //扫描mybatis dao
public class AppApplication {

    public static void main(String[] args) {
        Config.init();
        SpringApplication.run(AppApplication.class);
    }

}
